package com.tuo51.foudation.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * *******************************
 * Created by Ron.
 * form com.tuo51
 * on 2017/12/14
 * *******************************
 */
@Service
@Slf4j
public class MailSenderHelper {

  /*  @Autowired
    private JavaMailSender javaMailSender; //自动注入的Bean

    @Value("${spring.mail.username}")
    private String from; //读取配置文件中的参数


    public void sendSimpleMail(String to, String subject, String content){
        SimpleMailMessage message = new SimpleMailMessage();
        message.setFrom(from);
        message.setTo(to); //自己给自己发送邮件
        message.setSubject(subject);
        message.setText(content);
        javaMailSender.send(message);
    }*/
}
